<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <pre>
  这是一段测试文本
  换行
  另一行
  </pre>

  <div id="app">
    <div v-for="(val, key) in stu">{{ key }} -- {{ val }}</div>
    <div v-for="(item, index) in hobbies">{{ index }} -- {{ item }}</div>
    <div v-for="n in 6">{{ n }} - 渲染内容</div>
  </div>

  <script src="./libs/vue.js"></script>
  <script>
    new Vue({
      el: '#app',
      data: {
        stu: {
          name: '张三',
          age: 18,
          address: '四川成都'
        },
        hobbies: ['吃饭', '睡觉']
      }
    })
  </script>
</body>
</html>